{
 "cells": [
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "# 安装LangChain包\n",
    "```\n",
    "pip install --upgrade langchain -i https://pypi.org/simple\n",
    "```\n",
    "# 安装OpenAI的api包\n",
    "```\n",
    "pip install openai==v0.28.1 -i  https://pypi.org/simple\n",
    "```\n",
    "\n",
    "# 引入 openai key\n",
    "\n",
    "```python\n",
    "import os\n",
    "os.environ[\"OPENAI_API_KEY\"] = \"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n",
    "os.environ[\"OPENAI_PROXY\"] = \"http://127.0.0.1:7890\"\n",
    "\n",
    "```"
   ],
   "id": "36e80fc39c653377"
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": "",
   "id": "fefcf990d4447598"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
